public class GoodsTest {
    static void main() {
        Goods[] arr = new Goods[3];
        Goods g1 = new Goods("001","华为p40",5599,22);
        Goods g2 = new Goods("002","雪吻巧克力",52,520);
        Goods g3 = new Goods("003","戒指",52000,1);


        arr[0] = g1;
        arr[1] = g2;
        arr[2] = g3;
        for (int i = 0; i<arr.length; i++) {
            Goods goods = arr[i];
            System.out.println(goods.getId()+","+goods.getName()+","+goods.getPrice()+","+goods.getCount());


        }





    }
}
